package com.hello.cron;

import com.hello.websocket.WebSocketServer;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class websocketcron {

    @Resource
    WebSocketServer webSocketServer;

    @Scheduled(fixedRate = 150000)
    public void reportCurrentTime() {
//        webSocketServer.sendMessageToAll(System.currentTimeMillis() + "");
    }
}
